Reading binary file and looping over each byte